//----------------------------------------------------------------------------//
// IntegerQuery.java
// Created by user On 2012-10-30
package com.demo.framework.db.query;

import android.database.Cursor;

import com.demo.framework.db.QueryResultHandler;

/**
 *
 */
public class IntegerQuery implements QueryResultHandler<Integer> {

	/* (non-Javadoc)
	 * @see xch.android.database.ObjectQuery#readObject(android.database.Cursor, int)
	 */
	@Override
	public Integer handle(Cursor cursor, int numOfCols) {
		return cursor.getInt(0);
	}

}

//----------------------------------END---------------------------------------//